package com.wikidot.designpatterns.composite.example1;

/**
 * Represents leaf node.
 */
public class Office extends AdministrativeUnit {
	private static String PREFIX_OFFICE = "off-";

	public Office(String name, String locationCode) {
		super(name,  locationCode);
	}

	@Override
	public String getLocationInformation() {
		return this.parentUnit.getLocationInformation() +"."+ this.locationCode.toString();
	}

	@Override
	public String unitNameLabel() {
		return "Unstructured administrative area \"" + this.unitName + "\"";
	}

}
